package com.qys.training.biz.auth.service;

import com.qys.training.biz.auth.criteria.UserCriteria;
import com.qys.training.biz.auth.entity.User;

public interface UserService {
	
	/**
	 * 创建用户
	 * @param user
	 * @return
	 */
	Long create(User user);


	/**
	 * 根据id查询
	 * @param id
	 * @return
	 */
	User get(Long id);

	/**
	 * 条件查找
	 * @param criteria
	 * @return
	 */
	User findByCriteria(UserCriteria criteria);

}
